package com.getword.domain;

import lombok.Getter;
import lombok.Setter;
import lombok.ToString;
import org.springframework.data.annotation.Id;
import org.springframework.data.mongodb.core.mapping.Document;
import org.springframework.data.mongodb.core.mapping.Field;

import java.io.Serializable;
import java.util.Date;

@Document(collection = "outlineDetail")
@Getter
@Setter
@ToString
public class OutlineDetail implements Serializable {
    @Id
    @Field("_id")
    private String id;
    private String num; // 大纲小节编号:1.1
    private String name;
    private Long outlineId;
    private Integer chapterId;
    private Date time; //加入时间便于操作

    public OutlineDetail() {
    }

    public OutlineDetail(String id) {
        this.id = id;
    }
}
